<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>CBlog</title>
    <link type="text/css" style="sheet" rel="stylesheet" href="/style/css/layout.css"/>
  </head>

  <body>
    <div class="header">
    </div>
    
    <div class="body">
        <div class="body_top">
            <div class="logo">this is logo</div>
            <div class="menu">this is menu</div>
        </div>
        <div class="body_middle">
            <div class="inner_body">
                <div>
                                                name:<input id="name" type="text"/><a href="javascript:addCategory()">add</a>
                </div>
                <div>
                    <table width="500px">
                        <tr>
                            <td width="250"></td>
                            <td width="125"></td>
                            <td width="125"></td>
                        </tr>
                        <#list categorys as category>
                            <tr id="${category.id}_1">
                                <td>${category.name }</td>
                                <td><a href="javascript:showUpdateForm('${category.id}', 1)">modify</a></td>
                                <td><a href="javascript:deleteCategory('${category.id }')">delete</a></td>
                            </tr>
                            <tr id="${category.id}_2" style="display:none">
                                <td><input id="${category.id }" type="text" value="${category.name }"/></td>
                                <td><a href="javascript:updateCategory('${category.id }')">submit</a></td>
                                <td><a href="javascript:showUpdateForm('${category.id }', 0)">cancel</a></td>
                            </tr>
                       </#list>
                    </table>
                </div>
            </div>
        </div>
        <div class="body_below"></div>
    </div>
    
    <#include "footer.ftl">
  </body>
</html>